
import React, { useState } from 'react';
import { connect, FormattedMessage, useIntl } from 'umi';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Tabs,Card } from 'antd';
import EditableTable from './EditableTable';
import ConfigForm from './ConfigForm';

const { TabPane } = Tabs;

const BasicDefaultPage = props => {
  // const [showPublicUsers, setShowPublicUsers] = React.useState(false);
  return (
    <PageHeaderWrapper title="系统参数设置" content='设置常用的参数信息，参数信息保存到浏览器缓存中，接口调试时，默认值优先根据参数名称从缓存获取'>
      <Tabs defaultActiveKey="1">
        <TabPane tab="调试参数设置" key="1">
          <EditableTable></EditableTable>
        </TabPane>
        <TabPane tab="接口信息设置" key="2">
          <Card title="">
            <ConfigForm props></ConfigForm>
          </Card>
        </TabPane>
      </Tabs>
    </PageHeaderWrapper>
  );
};

export default BasicDefaultPage
